<?php

/**
 * EmailLogRoute class
 *
 * @author Julot
 * @since Wednesday, May 16, 2012. 02:43 PM
 */
class EmailLogRoute extends CEmailLogRoute {

	protected function sendEmail($email, $subject, $message) {
		if (strpos($message, 'ipc$')) return;
		
		$mail = new MailMessage($subject, $message);
		$mail->addTo($email);
		$email = Yii::app()->params['email'];
		$mail->setFrom($email['username'], 'Ayamo');
		Yii::app()->mail->send($mail);
	}

}
